package O4.arr;

import java.util.Arrays;

public class ArrayForeach {
    public static void main(String[] args) {
        int [] scores = {23, 34, 45, 56, 67};
        for (int i=0;i<scores.length;i++){
            System.out.println(scores[i]);
        }

        for (int m:scores){
            System.out.println(m);
        }

        System.out.println(Arrays.toString(scores));
        for (int j=scores.length-1;j>=0;j--){
            System.out.println(scores[j]);
        }



    }
}
